package com.wteam.PoJo.VO;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.time.LocalDate;

@ApiModel("用户信息")
@AllArgsConstructor
@NoArgsConstructor
@Data
public class fixmybody {
    @ApiModelProperty("昵称")
    @NotEmpty(message = "昵称不能为空")
    private  String nickName;

    @ApiModelProperty("性别")
    @NotNull(message = "性别不能为空")
    private  Integer sex;

    @JsonFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "生日", example = "2021-05-17 ", required = true)
    private LocalDate birthday;
}
